using System.Collections.Generic;
using System.Xml.Serialization;

namespace OpenWaves.Video.YouTube
{
    [XmlRoot(ElementName = "entry", Namespace = "http://www.w3.org/2005/Atom")]
    public class YouTubeVideo : IVideo
    {
        [XmlElement("title")]
        public string Title { get; set; }


        public string Id
        {
            get { return this.Group.Id; }
        }

        [XmlElement(ElementName = "group", Namespace = "http://search.yahoo.com/mrss/")]
        public YouTubeMediaGroup Group { get; set; }

        public IEnumerable<IVideoThumbnail> Thumbnails
        {
            get { return this.Group.Thumbnails; }
        }
    }
}